<script src="https://cdn.bootcss.com/socket.io/2.3.0/socket.io.js"></script>
<script>
    var socket = io('ws://127.0.0.1:9502?token=testtoken1', { transports: ["websocket"] });
    socket.on('connect', data => {
    	 // socket.emit('join-room', '1', console.log);
        socket.emit('say', '{"to_id":"2", "message":"Hello 我是1"}');
    });
    socket.on('hey', console.log);
</script>
